package com.fduss.artStore.dao;

import com.fduss.artStore.entity.OrderDetail;

/**
 * @Author duocai wu
 * @Date 2017/6/24
 * @Time 20:47
 */
public interface OrderDetailDao {

    OrderDetail add(OrderDetail orderDetail);

    OrderDetail update(OrderDetail orderDetail);

    void deleteByOrder(int orderId);

    /**
     * 引用其它dao，装填order detail对象
     * @param orderId
     * @return
     */
    OrderDetail getByOrder(int orderId);
}
